﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._20._1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("欢迎来到滴滴宠物店，请问你想要寄存什么动物呢？1.猫 2.老虎 3.老鹰 4.燕子");
            int key = int.Parse(Console.ReadLine());
            animal a;
            switch (key)
            {
                case 1:
                    a = new cat();
                    break;
                case 2:
                    a = new tiger();
                    break;
                case 3:
                    a = new eagle();
                    break;
                case 4:
                    a = new swallow();
                    break;
                default:
                    Console.WriteLine("输入错误！");
                    a = new swallow();
                    break;
            }
            animalstore aa = new animalstore();
            aa.jc(a);
            Console.ReadKey();
        }
    }
}
